/*                                                                                                   
 _____      _           _            ______             
|  __ \    (_)         | |           | ___ \            
| |  \/_ __ _ _ __   __| | ___ _ __  | |_/ / ___  _   _ 
| | __| '__| | '_ \ / _` |/ _ \ '__| | ___ \/ _ \| | | |
| |_\ \ |  | | | | | (_| |  __/ |    | |_/ / (_) | |_| |
 \____/_|  |_|_| |_|\__,_|\___|_|    \____/ \___/ \__, |
                                                   __/ |
                                                  |___/ 

FILENAME        : Registers.cpp
CREATED         : 2011-05-15
DESCRIPTION     : LR35902 Cpu registers implementation

*/

#include "Registers.hpp"

namespace GrinderBoy
{
    namespace Kernel
    {
        namespace CPU
        {
            namespace Sharp
            {
                namespace LR35902
                {
                    Registers::Registers()
                    {
                        this->_registerArea = new GrinderBoy::Kernel::UInt8[8 + 2 * 16];
                    }

                    Registers::~Registers()
                    {
                        if (this->_registerArea != NULL) delete[] this->_registerArea;
                    }
                }
            }
        }
    }
}